﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tracy.CoreLib
{
    public static class Constants
    {
        #region Tag
        public const string CONST_TAG_NAME = "name";
        
        public const string CONST_TAG_RSSFEEDLIST = "rss_feed_list";
        public const string CONST_TAG_ID = "id";
        public const string CONST_TAG_TITLE = "title";
        public const string CONST_TAG_ITEM = "item";
        public const string CONST_TAG_DESCRIPTION = "description";
        public const string CONST_TAG_LINK = "link";
        public const string CONST_TAG_LASTUPDATE = "last_update";
        public const string CONST_TAG_ORGINALRSS = "original_rss";
        public const string CONST_TAG_TYPE = "type";
        public const string CONST_TAG_SUBTYPE = "subtype";
        public const string CONST_TAG_SCHEMAID = "schema_id";

        public const string CONST_TAG_RSS = "rss";
        public const string CONST_TAG_CHANNEL = "channel";

        public const string CONST_TAG_SITESCHEMALIST = "site_schema_list";
        public const string CONST_TAG_RSSFILTERLIST = "rss_filter_list";
        public const string CONST_TAG_RESOURCELIST = "resource_list";
        public const string CONST_TAG_FILENAME = "filename";
        public const string CONST_TAG_FOLDER = "folder";
        public const string CONST_TAG_STATUS = "status";

        public const string CONST_TAG_FILTER = "filter";
        public const string CONST_TAG_FILTEREXPR = "regexpr";
        public const string CONST_TAG_TARGET = "target";
        public const string CONST_TAG_PRIORITY = "priority";

        public const string CONST_TAG_LEFTPOS = "leftpos";
        public const string CONST_TAG_RIGHTPOS = "rightpos";

        public const string CONST_TAG_PROPERTIES = "properties";
        public const string CONST_TAG_SOURCETYPES = "source_types";
        public const string CONST_TAG_TARGETTYPES = "target_types";

        public const string CONST_TAG_RELATIONSHIP = "relationships";
        public const string CONST_TAG_SOURCEID = "source_id";
        public const string CONST_TAG_TARGETID = "target_id";
        public const string CONST_TAG_PROPERTYID = "property_id";
        public const string CONST_TAG_SOURCETYPE = "type@source_id";
        public const string CONST_TAG_TARGETTYPE = "type@target_id";
        #endregion

        #region TracyDataTypes
        public const string CONST_DATA_TYPE_TEXTDESCRIPTION = "TextDescription";
        public const string CONST_DATA_TYPE_RESOURCEITEM = "ResourceItem";
        public const string CONST_DATA_TYPE_RSSFEEDSOURCE = "RssFeedSource";
        public const string CONST_DATA_TYPE_RSSFILTER = "RssFilter";

        #endregion

        #region Value
        public const string CONST_VALUE_TYPE_EMULE = "Emule";
        public const string CONST_VALUE_TYPE_BT = "BT";
        #endregion

        #region AppSettings
        public const string CONST_SETTING_RSSFEEDLISTLOCATION = "RSSFeedListLocation";
        public const string CONST_SETTING_SITESCHEMALISTLOCATION = "SiteSchemaListLocation";
        public const string CONST_SETTING_RESOURCELISTLOCATION = "ResourceListLocation";
        public const string CONST_SETTING_RSSFILTERLISTLOCATION = "RssFilterListLocation";
        public const string CONST_SETTING_TRACYPROPERTY = "TracyPropertyLocation";
        public const string CONST_SETTING_TRACYRELATIONSHIP = "TracyRelationshipLocation";

        public const string CONST_SETTING_PLUGINFOLDER = "PluginFolder";
        public const string CONST_SETTING_DOWNLOADER_EMULE = "EmuleDownloader";
        public const string CONST_SETTING_DOWNLOADER_BT = "BTDownloader";
        #endregion

        #region RssSourceTypeMapping
        public const string CONST_RSS_TYPE_EMULE = "ed2k://";
        #endregion

        #region Status
        public const string CONST_RESOURCE_STATUS_NEW = "0-New";
        public const string CONST_RESOURCE_STATUS_COMPLETED = "2-Completed";
        public const string CONST_RESOURCE_STATUS_RAW = "Raw";
        public const string CONST_RESOURCE_STATUS_SENTTODOWNLOAD = "1-SentToDownload";
        #endregion

        #region Application
        public const string CONST_APPLICATION_PATH_EXPLORER = "explorer.exe";
        public const string CONST_APPLICATION_PROCESS_THUNDER = "Thunder";
        public const string CONST_APPLICATION_PROCESS_EMULE = "emule";
        #endregion

        #region SystemProperty
        public const string CONST_PROPERTY_FILTERSOURCE = "对应的Rss源";
        #endregion

        #region MOE
        public const string CONST_MOE_MESSAGE_NOINCOMING = "残念，没有发现新的猎物-_-";
        public const string CONST_MOE_MESSAGE_INCOMINGFOUND = "发现%d个猎物^o^";
        public const string CONST_MOE_MESSAGE_EMPTYRESULT = "没有符合条件的猎物嘛，换个参数试试？";
        public const string CONST_MOE_MESSAGE_STATUS_READY = "偷懒中～";
        public const string CONST_MOE_MESSAGE_STATUS_BUSY = "努力中 >_<";
        #endregion
    }
}
